<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">平台信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>平台名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="平台名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<%-- <tr>
		<td align="right"><span class="color_red">*</span>平台名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/pt_name"
			label="平台名称" type="text" required
			class="input_css required maxlength:100" style="width: 725px;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/pt_name" />" /></td>
	</tr> --%>
	<tr>
		<td width="135" align="right"><span class="color_red">*</span>平台所在地点：</td>
		<td colspan="3"><input name="proposal/address" label="平台所在地点"
			type="text" required class="input_css required maxlength:100"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台认定时间：</td>
		<td><c:set var="hold_date">
				<x:out select="$xmlData/data/proposal/hold_date" />
			</c:set> <cpt:date id="hold_date" name="proposal/hold_date"
				value="${hold_date}" className=" required date" label="平台认定时间"></cpt:date>
		</td>
		<td align="right" nowrap><span class="color_red">*</span>认定部门：</td>
		<td><input name="proposal/department" label="认定部门" type="text"
			required class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/department" />" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台类别：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="research" label="综合类"
				value="01" /><span style="vertical-align: middle;">综合类</span></label> <label>
				<input type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="research" label="专业类"
				value="02" /><span style="vertical-align: middle;">专业类</span>
		</label> <label> <input type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="research" label="行业类"
				value="03" /><span style="vertical-align: middle;">行业类</span></label>
				
				<label> <input type="radio" class="do " id="advant_04"
				style="vertical-align: middle;" name="research" label="其他"
				value="04" /><span style="vertical-align: middle;">其他</span></label>
				
		   <input type="hidden" name="proposal/research_value" id="research_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/research_value" />"
			label="平台类别" /> <input type="hidden" name="proposal/research_name"
			id="research_name"
			value="<x:out select="$xmlData/data/proposal/research_name" />"
			label="平台类别" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台性质：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="nature_01"
				style="vertical-align: middle;" name="nature_type" label="政府主导建设"
				value="01" /><span style="vertical-align: middle;">政府主导建设</span></label> <label>
				<input type="radio" class="do " id="nature_02"
				style="vertical-align: middle;" name="nature_type" label="社会投资建设"
				value="02" /><span style="vertical-align: middle;">社会投资建设</span>
		</label> <input type="hidden" name="proposal/nature_type_value"
			id="nature_type_value" class="required"
			value="<x:out select="$xmlData/data/proposal/nature_type_value" />"
			label="平台性质" /> <input type="hidden"
			name="proposal/nature_type_name" id="nature_type_name"
			value="<x:out select="$xmlData/data/proposal/nature_type_name" />"
			label="平台性质" /></td>
	</tr>

	<%-- <tr>
	<td align="right"><span class="color_red">*</span>平台服务范围：</td>
	<td nowrap colspan="5" valign="middle">
	<label> <input type="checkbox" class="do " id="scope_01" style="vertical-align: middle;" name="terracescope"  value="01" /><span style="vertical-align: middle;">全市</span></label> 
	<label> <input type="checkbox" class="do " id="scope_02" style="vertical-align: middle;" name="terracescope" value="02" onclick="setCompanyStatus('scope_02','area');"/></label> <span style="vertical-align: middle;"><input  name="proposal/terrace_area" id="area" label="平台服务范围-->区" type="text" disabled  class="input_css required gray"  maxlength="50" value="<x:out select="$xmlData/data/proposal/terrace_area" />"/> 区</span>
	<label> <input type="checkbox" class="do " id="scope_03" style="vertical-align: middle;" name="terracescope" value="03" onclick="setCompanyStatus('scope_03','kfarea');"/></label><span style="vertical-align: middle;"><input  name="proposal/terrace_kfarea" id="kfarea" label="平台服务范围-->开发区" type="text" disabled  class="input_css required gray"  maxlength="50" value="<x:out select="$xmlData/data/proposal/terrace_kfarea" />"/> 开发区(园区、孵化器) </span>
	<label> <input type="checkbox" class="do " id="scope_04" style="vertical-align: middle;" name="terracescope"  value="04" onclick="setCompanyStatus('scope_04','other');"/></label><span style="vertical-align: middle;">其他<input  name="proposal/terrace_other" id="other" label="平台服务范围-->其他" disabled type="text"  class="input_css required gray"  maxlength="50" value="<x:out select="$xmlData/data/proposal/terrace_other" />"/>  </span>
	<input type="hidden" name="proposal/terracescope_value" id="terracescope_value" class="required" value="<x:out select="$xmlData/data/proposal/terracescope_value" />" label="平台服务范围" /> 
	<input type="hidden" name="proposal/terracescope_name" id="terracescope_name" value="<x:out select="$xmlData/data/proposal/terracescope_name" />" label="平台服务范围" /></td>
	</tr> --%>
	<tr>
		<td align="right"><span class="color_red">*</span>平台服务范围：</td>
		<td nowrap colspan="5" valign="middle">
		<label> <input type="radio" class="do " id="service_01" style="vertical-align: middle;" name="service" label="全市" value="01"  onclick="service('01')"/><span style="vertical-align: middle;">全市</span></label> 
		<label> <input type="radio" class="do " id="service_02" style="vertical-align: middle;" name="service" label="区" value="02" onclick="service('02')"/></label><span style="vertical-align: middle;">
		<input name="proposal/service_area" label="平台服务范围-->区" type="text" class="input_css gray" disabled maxlength="100" id="service_area_02" onchange="setValue('service_area_02');" value="<x:out select="$xmlData/data/proposal/service_area" />" />区</span> 
		<label>
		<input type="radio" class="do " id="service_03" style="vertical-align: middle;" name="service" label="开发区(园区、孵化器)" value="03" onclick="service('03')"/></label><span style="vertical-align: middle;">
		<input name="proposal/dep_area" label="平台服务范围-->开发区" type="text" class="input_css  gray" disabled maxlength="100"  id="service_area_03" onchange="setValue('service_area_03');" value="<x:out select="$xmlData/data/proposal/dep_area" />" />开发区(园区、孵化器)</span>
		<label> <input type="radio" class="do " id="service_04" style="vertical-align: middle;" name="service" label="其他" value="04" onclick="service('04')" /></label><span style="vertical-align: middle;">其他</span>
		<input id="service_area_04" name="proposal/other" label="平台服务范围-->其他" type="text" class="input_css  gray" disabled maxlength="100" onchange="setValue('service_area_04');" value="<x:out select="$xmlData/data/proposal/other" />" />
		<input type="hidden" name="proposal/service_value" id="service_value" class="required" value="<x:out select="$xmlData/data/proposal/service_value" />" label="平台服务范围" /> 
		<input type="hidden" name="proposal/service_name" id="service_name" value="<x:out select="$xmlData/data/proposal/service_name" />" label="平台服务范围" /></td>
	</tr>
	<%-- <tr>
	<td align="right"><span class="color_red">*</span>平台主要功能：</td>
	<td nowrap colspan="5" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="terracefunction" label="产品设计中心" value="01" /><span style="vertical-align: middle;">产品设计中心</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="terracefunction" label="公共试验检测平台" value="02" /><span style="vertical-align: middle;">公共试验检测平台</span></label>
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="terracefunction" label="国际营销服务平台" value="03" /><span style="vertical-align: middle;">国际营销服务平台</span></label>
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="terracefunction" label="国际孵化器平台" value="04" /><span style="vertical-align: middle;">国际孵化器平台</span></label>
	<label> <input type="radio" class="do " id="advant_05" style="vertical-align: middle;" name="terracefunction" label="公共交易平台" value="05" /><span style="vertical-align: middle;">公共交易平台</span></label><br/>
	<label> <input type="radio" class="do " id="advant_06" style="vertical-align: middle;" name="terracefunction" label="公共展示平台" value="06" /><span style="vertical-align: middle;">公共展示平台</span></label>
	<label> <input type="radio" class="do " id="advant_07" style="vertical-align: middle;" name="terracefunction" label="公共信息平台" value="07" /><span style="vertical-align: middle;">公共信息平台</span></label>
	<label style="margin-left: 23px;"> <input type="radio" class="do " id="advant_08" style="vertical-align: middle;" name="terracefunction" label="公共培训平台" value="08" /><span style="vertical-align: middle;">公共培训平台</span></label>
	<label style="margin-left: 25px;"> <input type="radio" class="do " id="advant_09" style="vertical-align: middle;" name="terracefunction" label="公共技术平台" value="09" /><span style="vertical-align: middle;">公共技术平台</span></label>
	<label style="margin-left: 11px;"> <input type="radio" class="do " id="advant_10" style="vertical-align: middle;" name="terracefunction" label="电子商务平台" value="10" /><span style="vertical-align: middle;">电子商务平台</span></label> 
	<input type="hidden" name="proposal/terracefunction_value" id="terracefunction_value" class="required" value="<x:out select="$xmlData/data/proposal/terracefunction_value" />" label="平台主要功能" /> 
	<input type="hidden" name="proposal/terracefunction_name" id="terracefunction_name" value="<x:out select="$xmlData/data/proposal/terracefunction_name" />" label="平台主要功能" /></td>
	</tr> --%>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台主要功能：</td>
		<td colspan="3"><c:set var="function">
				<x:out select="$xmlData/data/proposal/function_value" />
			</c:set> <cpt:select id="function" key="function" className="select_width" onChange="setStatus(this.value);"
				value="${function}"></cpt:select> <input type="hidden"
			id="function_value" name="proposal/function_value" class="required"
			value="${function}" label="平台主要功能"> <input type="hidden"
			name="proposal/function_name"
			value="<x:out select="$xmlData/data/proposal/function_name" />">
		</td>

	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	</table>
    <table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo2" cellspacing="1">
	<tr>
		<td   colspan="5" class="t_bar2">平台人员构成情况</td>
	</tr>
	<tr>

		<td align="right"><span class="color_red">*</span>职工总数：</td>
		<td><input name="proposal/staff_total"  id="staff_total"   type="text" 
			class="input_css required" style="text-align: right" label="职工总数"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();setPre1();setPre2();setPre4();"
			value="<x:out select="$xmlData/data/proposal/staff_total" />" /></td>
		<td align="right" >大专以上学历者占比（%）：</td>
		<td  colspan="2">
		<input name="proposal/junior_college_pre_pre" label="100%" id="junior_college_pre_pre" value='100' type="hidden">
		<input name="proposal/junior_college_pre"  id="junior_college_pre"   type="text"   disabled
			class="input_css gray valueCompare:junior_college_pre:junior_college_pre_pre" style="text-align: right" 
			onfocus="InitInput.setNumber(this,9,2,2)" label="大专以上学历者占比"
			value="<x:out select="$xmlData/data/proposal/junior_college_pre" />" /></td>
	</tr>
	<tr>

		<td align="right"><span class="color_red" id="teach_staff_col">*</span>其中教职员工数：</td>
		<td><input name="proposal/teach_staff"  id="teach_staff"   type="text"  label="其中教职员工数"
			class="input_css valueGreatEqual:staff_total:teach_staff" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre()";
			value="<x:out select="$xmlData/data/proposal/teach_staff" />" /></td>
		<td align="right" >教职员工数占比（%）：</td>
		<td  colspan="2"><input name="proposal/teach_staff_pre"  id="teach_staff_pre"   type="text" 
			class="input_css gray valueCompare:teach_staff_pre:junior_college_pre_pre"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)" label="教职员工数占比"
			value="<x:out select="$xmlData/data/proposal/teach_staff_pre" />" /></td>
	</tr>
	<tr>
	<td   align="right"><span class="color_red">*</span>其中研发人员数：</td>
	<td >
	<input  name="proposal/research_num"  id="research_num" onchange="setPre1();" label="其中研发人员数" type="text"   class="input_css required valueGreatEqual:staff_total:research_num" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/research_num" />"/> 
	</td>
	<td   align="right">研发人员数占比（%）：</td>
	<td  colspan="2">
	<input  name="proposal/research_proportion" id="proportion" label="研发人员数占比" type="text" disabled class="input_cs  gray valueCompare:proportion:junior_college_pre_pre" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/research_proportion" />"/> 
	</td>
	</tr>
	<tr>
	<td   align="right" nowrap><span class="color_red">*</span>其中专职技术服务人员数：</td>
	<td >
	<input  name="proposal/zzjsfw"  id="zzjsfw" onchange="setPre4();" label="其中专职技术服务人员数" type="text"  class="input_css required valueGreatEqual:staff_total:zzjsfw" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/zzjsfw" />"/> 
	</td>
	<td   align="right" nowrap>专职技术服务人员数占比（%）：</td>
	<td  colspan="2">
	<input  name="proposal/zzjsfw_num" id="zzjsfw_num" label="专职技术服务人员数占比" type="text" disabled class="input_cs  gray valueCompare:zzjsfw_num:junior_college_pre_pre" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/zzjsfw_num" />"/> 
	</td>
	</tr>
	<tr>
		<td align="center" rowspan="2">职工学历构成</td>
		<td align="center">大专</td>
		<td align="center">本科</td>
		<td align="center">硕士</td>
		<td align="center">博士</td>
	</tr>
	<tr>

		<td >
		    <input name="proposal/edu_total" id="edu_total" type="hidden" label="职工学历构成总数" value="<x:out select="$xmlData/data/proposal/edu_total" />"/>
		    <input name="proposal/junior_college"  id="junior_college"   type="text" 
			class="input_css valueCompare:edu_total:staff_total required" style="text-align: right" label="大专"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/junior_college" />" /></td>
		<td><input name="proposal/undergraduate" id="undergraduate" type="text" 
			class="input_css required" style="text-align: right" label="本科"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/undergraduate" />" /></td>
		<td ><input name="proposal/master" id="master" type="text" 
			class="input_css required" style="text-align: right" label="硕士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/master" />" /></td>
		<td ><input name="proposal/doctor" id="doctor"  type="text" 
			class="input_css required" style="text-align: right" label="博士"
			onfocus="InitInput.setNumber(this,9,0,0)"
		    onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/doctor" />" /></td>
	</tr>

	<tr>
		<td align="center" rowspan="2">职工职称构成</td>
		<td align="center">助理级</td>
		<td align="center">中级</td>
		<td align="center">高级</td>
		<td align="center">&nbsp;</td>
	</tr>
	<tr>

		<td >
		<input name="proposal/assistant_total" id="assistant_total" label="职工职称构成总数" type="hidden" value="<x:out select="$xmlData/data/proposal/assistant_total" />"/>
		<input name="proposal/assistant_level"  id="assistant_level"   type="text" 
			class="input_css valueCompare:assistant_total:staff_total required" style="text-align: right" label="助理级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/assistant_level" />" /></td>
		<td ><input name="proposal/middle_level"  id="middle_level"   type="text" 
			class="input_css required" style="text-align: right" label="中级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/middle_level" />" /></td>
		<td ><input name="proposal/high_level"  id="high_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="高级"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/high_level" />" /></td>
		<td align="center">&nbsp;</td>
	</tr>
	</table>
	<%-- <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
	<td   align="center" rowspan="2">职工学历构成</td>
	<td   align="center" ><span class="color_red">*</span>大专</td>
	<td   align="center" ><span class="color_red">*</span>本科</td>
	<td   align="center" ><span class="color_red">*</span>硕士</td>
	<td   align="center" ><span class="color_red">*</span>博士</td>
	</tr>
	<tr>
	<td align="center"><input  name="proposal/college"   label="职工学历构成-->大专" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/college" />"/></td>
	<td align="center"><input  name="proposal/university"   label="职工学历构成-->本科" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/university" />"/></td>
	<td align="center"><input  name="proposal/master"   label="职工学历构成-->硕士" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/master" />"/></td>
	<td align="center"><input  name="proposal/doctor"   label="职工学历构成-->博士" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/doctor" />"/></td>
	</tr>
	<tr>
	<td   align="center" rowspan="2">职工职称构成</td>
	<td   align="center" ><span class="color_red">*</span>助理级</td>
	<td   align="center" ><span class="color_red">*</span>中级</td>
	<td   align="center" colspan="2"><span class="color_red">*</span>高级</td>
	</tr>
	<tr>
	<td align="center"><input  name="proposal/assistant"   label="职工职称构成-->助理级" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/assistant" />"/></td>
	<td align="center"><input  name="proposal/middle"   label="职工职称构成-->中级" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/middle" />"/></td>
	<td align="center" colspan="2"><input  name="proposal/hight"   label="职工职称构成-->高级" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/hight" />"/></td>
	</tr>
	<tr>
		<td   colspan="6" class="t_bar2">平台主要设备设施</td>
	</tr>
	</table> --%>
	<div class="t_bar"><span class="color_red">*</span>平台主要设备设施</div>
<table  id="tblEuipments" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="60%">设备名称</th> 
				        <th class="TblHead" align="center"  width="15%">数量（台/套）</th> 
						<th class="TblHead" align="center"  width="15%">金额（万元）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments|euipment[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="euipments|euipment[0]|name"  class=" input_text " maxlength="50" style="width:80%"/>
						</td>
						
						<td>
							<input type="text" name="euipments|euipment[0]|amount"   onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%" class=" input_text" />
						</td> 
						<td>
							<input type="text" name="euipments|euipment[0]|money"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%" class=" input_text " />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/euipments/euipment" var="euipment">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments/euipment[${flag}${index}]@seq_no" ><x:out select="$euipment/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="euipments/euipment[${flag}${index}]/name"   style="width:80%"   class=" input_text " value="<x:out select="$euipment/name" />" maxlength="50"/>
						</td>
						
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/amount"  onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%"  class=" input_text" value="<x:out select="$euipment/amount" />"/>
						</td> 
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/money"  onfocus="InitInput.setNumber(this,7,4,2)"   style="text-align:right;width:80%"  class=" input_text" value="<x:out select="$euipment/money" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblEuipments');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblEuipments','selEuipments')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblEuipments','selEuipments')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblEuipments','平台主要设备设施');">
					</td></tr>
	</table>	

	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	
	
	<tr>
		<td   colspan="6" class="t_bar2">申报项目资金情况</td>
		
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td   align="right"><span class="color_red">*</span>申请金额(万元)：</td>
	    <td  colspan="3">
	    <input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请金额" type="text" required class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	    </td>
		
	</tr>
	<tr>
		<td align="right" nowrap>项目计划投入总额(万元)：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="项目计划投入总额" type="text" class="input_css  gray" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right" nowrap>项目执行期已完成投资(万元)：</td>
		<td colspan="3"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="项目执行期已完成投资" type="text" 
			class="input_css  gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>
	<tr>
	<td  align="right">支持方式：</td>
		<td  >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市商务局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>


	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	
	<tr>
		<td    class="t_bar2" colspan="4">合作参与单位信息</td>
		
	</tr>
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息1</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<br/>


<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
	
	
</table>
<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
	/* setCompanyStatus('scope_02','area');
	setCompanyStatus('scope_03','kfarea');
	setCompanyStatus('scope_04','other'); */
	service($("#service_value").val());
	setStatus($("#teach_staff").val());
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

/* function setCompanyStatus(id1,id2){
	if($("#"+id1).is(":checked")){
		$("#"+id2).removeClass("gray");
		$("#"+id2).attr("disabled",false);
	}
	if(!$("#"+id1).is(":checked")){
		$("#"+id2).addClass("gray");
		$("#"+id2).attr("disabled",true);
		$("#"+id2).val("");
	}
} */
/* function saveValue(){
	var str = "";
	$("#terracescope_name").val("");
	if($("#scope_01").is(":checked")){
		str = "全市";
	}
	if($("#scope_02").is(":checked")){
	    str = $.trim(str) +"，"+ $.trim($("#area").val())+"区";
	}
	if($("#scope_03").is(":checked")){
		str = $.trim(str) +"，"+ $.trim($("#kfarea").val())+"开发";
	}
	if($("#scope_04").is(":checked")){
		str = $.trim(str) +"，"+"其他："+ $.trim($("#other").val());
	}
 	$("#terracescope_name").val(str);
} */

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").removeClass("required");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).addClass("required");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}
function setValue(id){
	if("service_area_02" == id){
		$("#service_name").val($("#"+id).val()+"区");
	}
	if("service_area_03" == id){
		$("#service_name").val($("#"+id).val()+"开发区");
	}
	if("service_area_04" == id){
		$("#service_name").val("其他："+$("#"+id).val());
	}
}

function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#teach_staff_pre").val("0.00");
    }else{
    	 $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
    }
   
	
}

function setPre1(){
	var  teach_staff=$("#research_num").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#proportion").val("0.00");
    }else{
    $("#proportion").val(formatVal(teach_staff*100/staff_total));
    }
}

function setPre2(){
	var  edu_total=$("#edu_total").val();
    var  staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#junior_college_pre").val("0.00");
    }else{
    $("#junior_college_pre").val(formatVal(edu_total*100/staff_total));
    }
}

function setPre4(){
	var  zzjsfw=$("#zzjsfw").val();
    var  staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#zzjsfw_num").val("0.00");
    }else{
    $("#zzjsfw_num").val(formatVal(zzjsfw*100/staff_total));
    }
}
function setStatus(val){
	if(val == '8'){
		$("#teach_staff").addClass("required");
		$("#teach_staff").removeClass("gray");
		$("#teach_staff").attr("disabled",false);
		$("#teach_staff_col").show();
	}else{
		$("#teach_staff").addClass("gray");
		$("#teach_staff").removeClass("required");
		$("#teach_staff").attr("disabled",true);
		$("#teach_staff").val("");
		$("#teach_staff_pre").val("");
		$("#teach_staff_col").hide();
	}
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
</script>

